package me.spring.cloud.common.components.rpc.request;

import java.io.Serializable;
import javax.validation.Valid;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.spring.cloud.common.components.rpc.request.header.ReqHeader;

/**
 * 通用请求
 *
 * @author luffy
 * @date 2018/7/18
 */
public interface Request<H extends ReqHeader,T> extends Serializable {

  H getHeader();

  T getBody();

  void setHeader(H header);

  void setBody(T body);
}